﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace PhoneBilling.Models
{
    public class GradeDetailEditModel
    {
        public string GradeID { get; set; }

        [Required(ErrorMessage = "请选择话类.")]
        [Display(Name = "话类：")]
        public string 话类 { get; set; }
        public List<UIAreaType> AreaTypeList { get; set; }

        [Required(ErrorMessage = "请输入最小计费延时.")]
        [Display(Name = "最小计费延时（秒）：")]
        public int 最小计费延时 { get; set; }

        [Required(ErrorMessage = "请输入时长误差.")]
        [Display(Name = "时长误差：")]
        public int 时长误差 { get; set; }

        [Required(ErrorMessage = "请输入最小计次次数.")]
        [Display(Name = "最小计次次数：")]
        public int 最小计次次数 { get; set; }

        [Required(ErrorMessage = "请输入服务费缩放系数.")]
        [Display(Name = "服务费缩放系数：")]
        public decimal 服务费缩放系数 { get; set; }

        [Required(ErrorMessage = "请输入.")]
        [Display(Name = "附加费按基本费的比例收取时的系数：")]
        public decimal 附加费按基本费的比例收取时的系数 { get; set; }

        [Required(ErrorMessage = "请输入.")]
        [Display(Name = "服务费按基本费的比例收取时的系数：")]
        public decimal 服务费按基本费的比例收取时的系数 { get; set; }

        [Required(ErrorMessage = "请输入.")]
        [Display(Name = "附加费按服务器的比例收取时的系数：")]
        public decimal 附加费按服务器的比例收取时的系数 { get; set; }

        [Required(ErrorMessage = "请输入.")]
        [Display(Name = "单笔花费最小金额：")]
        public decimal 单笔花费最小金额 { get; set; }

        [Required(ErrorMessage = "请输入.")]
        [Display(Name = "单笔花费最大金额：")]
        public decimal 单笔花费最大金额 { get; set; }

        [Required(ErrorMessage = "请输入.")]
        [Display(Name = "单笔花费最大金额：")]
        public decimal 包月话类收费起点 { get; set; }

        [Required(ErrorMessage = "请输入.")]
        [Display(Name = "包月话类封顶限额：")]
        public decimal 包月话类封顶限额 { get; set; }

        [Display(Name = "优惠折扣单价取整：")]
        public bool 优惠折扣单价取整 { get; set; }

        [Display(Name = "单笔花费总价取整：")]
        public bool 单笔花费总价取整 { get; set; }

        //[Display(Name = "取整优惠")]
        public string 取整优惠{get;set;}

        //[Display(Name = "取整单笔")]
        public string 取整单笔 { get; set; }

        //[Display(Name = "尾数优惠")]
        public string 尾数优惠 { get; set; }

        //[Display(Name = "尾数单笔")]
        public string 尾数单笔 { get; set; }

        public bool IsNew { get; set; }
    }
}